
 // 全局存储，方便随时调用
const app = getApp()

Page({
  data: {
    avatarUrl: 'https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132',
    show:false //展示登录按钮
  },
  onLoad: function() {     
  },
  // 授权登录
  sign(){
      wx.getUserProfile({
        desc: 'desc',
        success: (res) => {
            console.log(res.userInfo)
        }
      })
  },

  onChooseAvatar(e) {
    this.setData({
        avatarUrl: e.detail.avatarUrl
    })
    }
})


